* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main {
  margin: 100px auto;
  padding-top: 20px;
  width: 360px;
  height: 420px;
  background-color: pink;
  border: 5px solid #000;
  border-radius: 5px;
  font: bold 20px "Courier";
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  .stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: 2px solid #000;
    border-radius: 2px;

    .snake {
      &>div {
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: #000;
        border: 1px solid pink;
        z-index: 3;
      }
    }

    .food {
      position: absolute;
      width: 10px;
      height: 10px;
      background-color: #eee;
      border-radius: 5px;
      z-index: 2;
    }
  }

  .score-panel {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
  }
}